package net.wanho.systemSettings.service.impl;

import net.wanho.commons.exception.ServiceException;
import net.wanho.commons.service.impl.BaseServiceImpl;
import net.wanho.systemSettings.dao.EmployeeDAO;
import net.wanho.systemSettings.po.Employee;
import net.wanho.systemSettings.service.EmployeeService;

import java.util.HashMap;
import java.util.Map;

public class EmployeeServiceImpl extends BaseServiceImpl<EmployeeDAO, Employee> implements EmployeeService {
    @Override
    public Map<String, Object> countAll(Integer employeeId) throws ServiceException {
        Map<String,Object> dataMap = new HashMap<>(3) ;
        dataMap.put("count7And30",super.baseDAO.count7AndMonth()) ;
        dataMap.put("customerAndBusiness30",super.baseDAO.currMonthCustomerAndBusiness()) ;
        dataMap.put("selfTask",super.baseDAO.selfTask(employeeId)) ;
        return dataMap;
    }
}
